package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionResetPasswordReqDTO;
import com.jzo2o.customer.service.IServeProviderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/agency/serve-provider")
@Api(tags = "密码重置接口")
public class ResetPasswordController {
    @Resource
    private IServeProviderService serveProviderService;

    /**
     * 机构登录密码重置接口
     *
     * @param dto
     */
    @PostMapping("/institution/resetPassword")
    @ApiOperation("机构登录密码重置接口")
    public void institutionResetPassword(@RequestBody InstitutionResetPasswordReqDTO dto) {
        serveProviderService.institutionResetPassword(dto);
    }
}
